package com.hxgz.steel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

@ApiModel("账号管理")
public class BackendUser {

  private Long id;

  @ApiModelProperty(value = "账号")
  private Long userName;

  @ApiModelProperty(value = "密码")
  private String password;

  @ApiModelProperty(value = "身份 0超级管理员 1管理员")
  private Integer role;

  @ApiModelProperty("姓名")
  private String realName;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  private Date updataTime;

  public BackendUser() {
  }

  public BackendUser(Long id, Long userName, String password, Integer role, String realName,
      Date createTime, Date updataTime) {
    this.id = id;
    this.userName = userName;
    this.password = password;
    this.role = role;
    this.realName = realName;
    this.createTime = createTime;
    this.updataTime = updataTime;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getUserName() {
    return userName;
  }

  public void setUserName(Long userName) {
    this.userName = userName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public Integer getRole() {
    return role;
  }

  public void setRole(Integer role) {
    this.role = role;
  }

  public String getRealName() {
    return realName;
  }

  public void setRealName(String realName) {
    this.realName = realName;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdataTime() {
    return updataTime;
  }

  public void setUpdataTime(Date updataTime) {
    this.updataTime = updataTime;
  }
}